package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.CustomerFrom;
import com.njtoyo.taxi.admin.mapper.master.enums.CustomerGender;
import com.njtoyo.taxi.admin.mapper.master.enums.CustomerHasUniqueUuid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dell
 * @since 2021-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "手机号码")
    private String mobileNumber;

    @ApiModelProperty(value = "性别，0:unknown,1:male,2:female")
    private CustomerGender gender;

    @ApiModelProperty(value = "地区表ID")
    private Long areaId;

    @ApiModelProperty(value = "乘客运营区")
    private Long customerRegionId;

    @ApiModelProperty(value = "激活时所在地区")
    private Long areaIdAtActivation;

    private Long locateCityId;

    private String password;

    private String wxOpenId;

    @ApiModelProperty(value = "一卡通Id")
    private String webkitId;

    @ApiModelProperty(value = "0:wxmina(微信小程序),1:app(APP),2:h5(h5网页),3:webkit(全澄通),4:h5Market(h5本地生活)")
    private CustomerFrom lastFrom;

    @ApiModelProperty(value = "0:wxmina(微信小程序),1:app(APP),2:h5(h5网页),3:webkit(全澄通),4:h5Market(h5本地生活)")
    private CustomerFrom originFrom;

    private Boolean isFreezed;

    private Boolean isActive;

    @ApiModelProperty(value = "是不是唯一的设备 0:unknown[未知],1:unique[唯一],2:not_unique[不唯一]")
    private CustomerHasUniqueUuid hasUniqueUuid;

    private String deviceInfo;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String refreshToken;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


}
